
const {VITE_APP_CHAT_URL} = import.meta.env



const ChatPageWrapper = () => {

    // const weburl = localStorage.getItem("chaturl") || VITE_APP_CHAT_URL
    const chatport = localStorage.getItem("chatport") || '8501'
    const weburl = `${location.protocol}//${location.hostname}:${chatport}`

    return (
        <div style={{
            // position: "relative", width: "100%",
            // paddingTop: "calc(100% * 720 / 1280)",
            // border: "2px black solid"
            }}>

            <iframe src={weburl} style={{width: "100%", height: "100vh"}} frameBorder={0}></iframe>
        </div>
    )
}


export default ChatPageWrapper
